<?php
/**
* 威富通对应的 key和mch_id 2个参数
*/
class user_transfer_charge_model extends CI_Model
{
    private $_table   = 'user_transfer_charge';

    public function findByUid($uid)
    {
        $this->db->select('*');
        $this->db->from($this->_table);
        $this->db->where('uid', $uid);
        $this->db->limit(1);
        return $this->db->get();
    }

    public function findBySid($sid)
    {
        $this->db->select('*');
        $this->db->from($this->_table);
        $this->db->where('sid', $sid);
        $this->db->limit(1);
        return $this->db->get();
    }
}